package com.dimensionx.links.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author tyz
 * @since 2024-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("links_user_platform")
@ApiModel(value="UserPlatform对象", description="")
public class UserPlatform extends Model<UserPlatform> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "第三方用户的 union id")
    private String unionId;

    @ApiModelProperty(value = "第三方用户的 open id")
    private String openId;

    @ApiModelProperty(value = "用户的授权令牌")
    private String accessToken;

    @ApiModelProperty(value = "第三方用户的授权令牌的有效期")
    private Integer expireIn;

    @ApiModelProperty(value = "刷新令牌")
    private String refreshToken;

    @ApiModelProperty(value = "平台标记")
    private String platform;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "系统用户ID")
    private String userId;


    @Override
    protected Serializable pkVal() {
        return this.unionId;
    }

}
